third-party-prc-api
Western Union- Get Delivery Services
Description: This API returns product codes and their associated product names available for the selected corridor.
Mulesoft Request:
Headers:
Mandatory Headers: x-correlation-id, client_id, client_secret, x-channel-id
Optional Headers: x-sub-channel-id, x-user-id, x-bank-id, x-debug-flag, x-customer-id, Authorization
Paramaters:
URI Params: NA
Query Params: language (Optional),
senderCountryCurrencyCode (Mandatory),
receiverCountryCurrencyCode (Optional),
type (Optional)
Content-type: application/json
Mulesoft Response:
Success Response: (200)
{
"status": {
"success": "true",
"code": "200",
"arabicMessage": "تمت العملية بنجاح",
"englishMessage": "The Operation has been Successfully Completed"
},
"response": {
"deliveryServices":[
{
"destinationCode": "IND",
"serviceCode": 000",
"serviceName": MONEY IN MINUTES",
"route": "WADSIN000",
"banner: "Payee Information for Money in Minutes",
"template: "0000",
"deliveryType: "SVC",
"description: "MONEY IN MINUTES IS AVAILABLE. MONEY CAN BE PICKED UP AT ANY AGENT LOCATION WITHIN MINUTES."
"exclFlags": "00"
},
{
"destinationCode": "IND",
"serviceCode": "500",
"serviceName": "DIRECT TO BANK",
"route": "WADSIN001\EBD",
"banner": "PAYEE INFORMATION FOR DIRECT DEPOSIT SERVICE",
"template": "4020",
"deliveryType": D2B",
"description": "PAYEE INFORMATION FOR DIRECT DEPOSIT SERVICE",
"exclFlags": "C1"
}
]
}
}
Sample Error Response:
500 :
{
"success”: false,
"code”: 500,
"reasonCode”: "Internal Server Error",
"arabicMessage”: "",
"englishMessage":"NO MATCHING RECORDS FOUND",
"backendError": "NO MATCHING RECORDS FOUND", (if debug flag is on)
"backendCode": "D0004" (if debug flag is on)
}